package com.sk.waste.app.bases

import com.lc.smc.lib.activitys.LCActivity

/**
 *  @time 2024/7/31  17:07
 *  @author Im_jingwei
 *  @desc 页面业务类基类
 */
open class BasePresenter(open val activity: LCActivity) {

    protected var TAG: String = "LCLOG_" + javaClass.simpleName

    /**
     *  @time 2024/8/1  9:15
     *  @author Im_jingwei
     *  @desc 获取view,子类重写返回对应Activity
     */
    open fun getView(): LCActivity {
        return activity
    }

    /**
     *  @time 2024/7/31  17:25
     *  @author Im_jingwei
     *  @desc 显示Toast
     */
    fun showToast(res: Int) {
        activity.showToast(res)
    }

    /**
     *  @time 2024/7/31  17:25
     *  @author Im_jingwei
     *  @desc 显示Toast
     */
    fun showToast(msg: String) {
        activity.showToast(msg)
    }
}